package org.balabala.user.feign;


import com.baomidou.mybatisplus.extension.api.R;
import org.balabala.user.entity.VideoEntity;
import org.balabala.user.utils.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

@Component
@FeignClient("video")
public interface VideoFeign {
    @PostMapping("/balabala/video/get_videos_info")
    public Resp listByUid(@RequestBody Long[] videoIds);

//    @GetMapping(value = "balabala/video/get_frame_url/{videoId}")
//    Resp getFrameUrl(@PathVariable Long videoId);

    /**
     * 获取视频url
     * @param videoId
     * @return
     */
    @GetMapping(value = "/balabala/video/get_url/{videoId}")
    Resp getVideoURL(@PathVariable Long videoId);
}
